home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
ftp.mactech.com 2010
/
ftp.mactech.com.tar
/
ftp.mactech.com
/
macintosh-c
/
macc-carbon-demos-nonbinhex.sit
/
macc-carbon-demos-nonbinhex
/
chap24-demo-classic events
/
SoundAndSpeech.c.rsrc
/
TEXT_16903.txt
< prev
Wrap
Text File
|
2001-05-31
|
1KB
|
30 lines
// *******************************************************************************************
// SoundAndSpeech.c CARBONIZED. USES CLASSIC EVENT MODEL
// *******************************************************************************************
//
// This program opens a modeless dialog containing five bevel button controls arranged in
// two groups, namely, a synchronous sound group and an asynchronous sound group. Clicking on
// the bevel buttons causes sound to be played back or recorded as follows:
//
// • Synchronous group:
//
// • Play sound resource.
//
// • Record sound resource (Mac OS 8/9 only).
//
// • Speak text string.
//
// • Asynchronous group:
//
// • Play sound resource.
//
// • Speak text string.
//
// The asynchronous sound sections of the program utilise a special library called
// AsyncSoundLibPPC, which must be included in the CodeWarrior project.
//
// The program utilises the following resources:
//
// • A 'carb' resource.
//
// • A 'D